﻿--[[
   @brief    ui logic for colud_game_provider_selector ui
   @author   planezhang
   @version  1.0
   @date     2020-10-21
--]]

colud_game_provider_selector_control = {
    init = function()
    base_utility.log("[colud_game_provider_selector_control]init");
	ierd_tgp.tpf_ui.Require("cloud_game_provider_selector\\view.lua");
    end;
    
    open_provider_selector = function(event_id, data)
        base_utility.log("[colud_game_provider_selector_control]open_loader_selector");
        ierd_tgp.tpf_ui.Require("cloud_game_provider_selector\\view.lua");
        local action_info = base_utility.json_to_table(data);
        if action_info == nil then
            return;
        end;  
        cloud_game_provider_selector_view.set_data(action_info);
    end;

    fill_loader_selector = function (event_id, data)
      cloud_game_provider_selector_view.show(1);
      local selector_data = base_utility.json_to_table(data);
      cloud_game_provider_selector_view.fill_loader_selector(selector_data);
    end;
};
colud_game_provider_selector_control.init();
